Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 5 - Menu Manager Reference / Menu Manager Types and Constants


Contextual Menu Gestalt Selector Constants

NEW WITH CONTEXTUAL MENUS

Before calling any contextual menu functions, your application should pass the selector gestaltContextualMenuAttr to the Gestalt function to determine whether contextual menu functions are available.

enum{
   gestaltContextualMenuAttr  = 'cmnu'
};
Constant description

gestaltContextualMenuAttr
The Gestalt selector passed to the Gestalt function to determine whether contextual menu functions are available. Produces a value whose bits you should test to determine whether the contextual menu functions are available.
The following values are the bit numbers with which you can test for the presence of contextual menu functions:

enum{
   gestaltContextualMenuPresent       = 0,
   gestaltContextualMenuTrapAvailable = 1
};

Constant descriptions

gestaltContextualMenuPresent
If this bit is set, the contextual menu functions are available to PowerPC applications. If this bit is not set, these functions are not available to PowerPC applications.
gestaltContextualMenuTrapAvailable
If this bit is set, the contextual menu functions are available to 68K applications. If this bit is not set, these functions are not available to 68K applications.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998